<?php
class WebUser extends CWebUser
{      
    public $user;
    public $userInfo;
    
    public function init(){
        parent::init();    
        if($this->id){
            $this->user = User::model()->findByPk($this->id);
            $this->userInfo = UserInfo::model()->getModel($this->id);
            if(!$this->user || $this->user->status == 'DISABLE') $this->logout(false);
            
        }
    }
}